package com.ty.day2;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : txy
 * @Create 2023/10/27 11:25
 */
public class three {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int x = sc.nextInt();
        double result = Math.sqrt(x);
        System.out.printf("%d的平方根为：%f", x, result);

    }
}
